package com.xiaoc.bulldozer.common.service.impl;

import java.util.List;
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.xiaoc.bulldozer.common.dao.SendMessageLogMapper;
import com.xiaoc.bulldozer.common.dto.SendMessageLogQueryDto;
import com.xiaoc.bulldozer.common.model.SendMessageLog;
import com.xiaoc.bulldozer.common.service.SendMessageLogService;

/**
 * SendMessageLog Service 实现类
 * 
 * @author Danfo Yam
 * 
 * @date 2018-11-02 16:32:53
 */
@Service("sendMessageLogService")
public class SendMessageLogServiceImpl implements SendMessageLogService {

    @Resource
    private SendMessageLogMapper sendMessageLogMapper;

    @Override
    public Integer getSendMessageLogCountByCondition(SendMessageLogQueryDto sendMessageLogQueryDto) {
        return sendMessageLogMapper.getSendMessageLogCountByCondition(sendMessageLogQueryDto);
    }

    @Override
    public List<SendMessageLog> getSendMessageLogListByCondition(SendMessageLogQueryDto sendMessageLogQueryDto) {
        return sendMessageLogMapper.getSendMessageLogListByCondition(sendMessageLogQueryDto);
    }

    @Override
    public SendMessageLog getSendMessageLogById(Integer id) {
        return sendMessageLogMapper.getSendMessageLogById(id);
    }

    @Override
    public List<SendMessageLog> getAllSendMessageLogList() {
        return sendMessageLogMapper.getAllSendMessageLogList();
    }
    
    @Override
    public void save(SendMessageLog sendMessageLog) {
        sendMessageLogMapper.save(sendMessageLog);
    }

    @Override
    public void update(SendMessageLog sendMessageLog) {
        sendMessageLogMapper.update(sendMessageLog);
    }

    @Override
    public void deleteById(Integer id) {
        sendMessageLogMapper.deleteById(id);
    }

    @Override
    public void saveBatch(List<SendMessageLog> sendMessageLogList) {
        sendMessageLogMapper.saveBatch(sendMessageLogList);
    }
}
